import request from '@/utils/request'

// 查询note列表
export function listDataNote(query) {
  return request({
    url: '/note/dataNote/list',
    method: 'get',
    params: query
  })
}

// 查询note详细
export function getDataNote(id) {
  return request({
    url: '/note/dataNote/' + id,
    method: 'get'
  })
}

// 新增note
export function addDataNote(data) {
  return request({
    url: '/note/dataNote',
    method: 'post',
    data: data
  })
}

// 修改note
export function updateDataNote(data) {
  return request({
    url: '/note/dataNote',
    method: 'put',
    data: data
  })
}

// 删除note
export function delDataNote(id) {
  return request({
    url: '/note/dataNote/' + id,
    method: 'delete'
  })
}
